package com.eastfair.certificate.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eastfair.boot.request.PageParams;
import com.eastfair.boot.service.SuperCacheService;
import com.eastfair.boot.service.SuperService;
import com.eastfair.certificate.entity.People;

import java.util.List;

import com.eastfair.certificate.vo.*;
import com.eastfair.certificate.dto.*;

/**
 * <p>
 * 业务接口
 * 人员库
 * </p>
 *
 * @author ligang
 * @date 2023-03-07
 */
public interface PeopleService extends SuperCacheService<People> {
    /**
     * do转vo
     *
     * @param model
     */
    PeopleVO doToVo(People model);

    /**
     * do转vo
     *
     * @param modelList
     */
    List<PeopleVO> doToVos(List<People> modelList);

    /**
     *
     * @param params
     * @return
     */
    IPage<People> pageVo(PageParams<People> params);
    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<People> list(PeopleDTO modelDTO, List<Long> ids);

    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<People> listOfCache(PeopleDTO modelDTO, List<Long> ids);

    /**
     * 操作更新人员库
     * @param peopleDTO
     */
    void executePeople(PeopleDTO peopleDTO);
}
